package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallAd;
import com.cskaoyan.bean.MallAdExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MallAdMapper {
    long countByExample(MallAdExample example);

    int deleteByExample(MallAdExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallAd record);

    int insertSelective(MallAd record);

    List<MallAd> selectByExample(MallAdExample example);

    MallAd selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallAd record, @Param("example") MallAdExample example);

    int updateByExample(@Param("record") MallAd record, @Param("example") MallAdExample example);

    int updateByPrimaryKeySelective(MallAd record);

    int updateByPrimaryKey(MallAd record);

    //select方法
    List<MallAd> selectList();

    //insert方法
    Integer insertSimpleMallAd(@Param("mallAd") MallAd mallAd);

    //update方法
    Integer updateMallAd(@Param("mallAd") MallAd mallAd);

    //delete方法
    Integer deleteMallAd(@Param("mallAd") MallAd mallAd);
}
